 <?php echo $this->Html->script(array('ckeditor/ckeditor')); ?>
 <style>
    .cke{
        margin-left:0px !important;
    }
 </style>         
<div class="main-content">
      <div class="left-panel"></div>
      <div class="panel">
        <?php echo $this->element("backend/left_menu");?> 
        <div class="content">
          <div class="title">
             <h2 class="t1">Giới thiệu công ty</h2>
          </div>
          <?php echo $this->session->flash(); ?>
          <?php echo $this->Form->create("Introduction");
                echo $this->Form->hidden('id');    ?>
          
             <fieldset>
              <div class="input-content">
                  <div class="input ">
                    <?php echo $this-> Form->input('content',array(
                                                'type'=>'Textarea',
                                                'label'=>false, 
                                                'div'=>false,
                                                'class'=>'ckeditor'
                                            ));?>
                    <div class="error-message" id="error_name"></div>
				
		          </div>
                                
                  <div class="submit">
                   <?php echo $this->Form->submit("",array('class'=>'save','id'=>'btnSave')); ?>
                   <!-- <input type="submit" id="btnSave" value="" class="save"> -->
                    <a href="javascript:resetForm()" id="resetForm" class="reset">Reset</a>
                  </div>
            </fieldset>
          <?php echo $this->Form->end(); ?>
    <script>

    $("#btnSave").click(function(){
            var  validateBannerName   = new validate("BannerBannerName","error_name","Bạn chưa nhập tên banner");
            var  validateFile       = new validate("BannerFileName",'error_file',"Bạn chưa chọn file ảnh");
            var  result     = validateBannerName.notEmpty();
            var  result2    = validateFile.notEmpty();
             if(!(result && result2))
            {
                $('html, body').animate({ scrollTop: 0 }, 'slow');
            }
            return result && result2;
        });
     function resetForm()
     {
        window.location.reload();
     }
    </script>
          <br />
         
         
        </div>
      </div>
      <div class="right-panel"></div>
      <!-- main.end -->
    </div>
    <script>
    $(".page-far-left").click(function(){
        
       window.location.href=document.getElementById('prev').href;
    });
    $(".page-far-right").click(function(){
        
       window.location.href=document.getElementById('next').href;
    });
    </script>